/*
 * v1.1 by tonydon site:txdnet.cn
 * netbeansIDE 7.1
 */
package cn.txdnet.txcms.auth;

import cn.txdnet.txweb.utils.Constants;
import java.awt.Font;
import txdnet.util.image.AuthCodeBaseServlet;

/**
 *
 * @author txdnet
 */
public final class AuthImageCode extends AuthCodeBaseServlet {

    private static final long serialVersionUID = -6253997805423163268L;
    private int[] bgcolor = {0xFFFFFF};

    public AuthImageCode() {
        super();
        super.setSessionname(Constants.SN_VCODE);
        super.setBgcolor(bgcolor);
        super.setImgw(100);
        super.setImgh(48);
        super.setCharnum(4);
        super.setPixnum(0);
        super.setBdwArc(false);
        super.setBdwLine(true);
        super.setBrot(false);
        super.setFontsize(32);// 设置字体尺寸后 必须设置字体类型
        super.setFont(
                new Font[]{
                    new Font("Tahoma", Font.ITALIC, 28),
                    new Font("JI Hidden Vines", Font.ITALIC, 26)
//MyFont.getTureTypeFontByClass(this.getClass().getResourceAsStream("/JI-Hidden-Vines.ttf")).deriveFont(Font.ITALIC, 26),
                });
    }
}
